package com.horay.springbootdemo.async.context.configuration;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 异步配置
 *
 * @author heyingcheng
 * @date 2019/9/2 0:25
 */
@Setter
@Getter
@ToString
@Component
@ConfigurationProperties(prefix = "spring.web.async.task")
public class AsyncContextProperties {

    private long timeout;
    private int corePoolSize;
    private int maxPoolSize;
    private int queueCapacity;
    private int keepAliveSeconds;

}
